package com.heima.utils.common;

import com.heima.model.wemedia.entity.WmMaterial;

public class WmThreadLocalUtil {
    private static final ThreadLocal<WmMaterial> threadLocal=new ThreadLocal<>();

    public static WmMaterial getId(){
       return threadLocal.get();
    }

    public static void  setId(WmMaterial id) {
        threadLocal.set(id);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
